
import os
from PyQt5.QtCore import *
import threading

"""系统控制接口类"""
class SysControl(QObject):
    #定义显示相机信号
    startCameraSignal=pyqtSignal()
    #定义隐藏相机信号
    stopCameraSignal=pyqtSignal()
    #定义关闭程序信号
    closeFormSignal=pyqtSignal()
    def __init__(self, cvCamera):
        self.cvCamera = cvCamera
        return super().__init__()

    #显示相机接口
    @pyqtSlot()
    def startCamera(self):
        print("开启")
        self.cvCamera.start()
    #隐藏相机接口
    @pyqtSlot()
    def stopCamera(self):
        self.cvCamera.stop()
    #关闭程序接口
    @pyqtSlot()
    def closeForm(self):
        os.system("sudo init 0")




        
   
